package com.ld.poetry.aigc.iflycode.gclu.codecontinue;

//CREATE TABLE Security (
//                          SecurityID INT PRIMARY KEY,
//                          SecurityName VARCHAR(255) NOT NULL,
//                          TradingDate DATE NOT NULL,
//                          CSRCIndustryTypeID INT NOT NULL,
//                          TradingPrice DECIMAL(10, 2) NOT NULL
//);

public class Security {
    private int securityID;
    private String securityName;
    private String tradingDate;
    private int csrcIndustryTypeID;
    private double tradingPrice;
    public int getSecurityID() {
        return securityID;
    }

    public String getSecurityName() {
        return securityName;
    }

    public String getTradingDate() {
        return tradingDate;
    }

    public int getCSRCIndustryTypeID() {
        return csrcIndustryTypeID;
    }

    public double getTradingPrice() {
        return tradingPrice;
    }

    public Security(int securityID, String securityName, String tradingDate, int csrcIndustryTypeID, double tradingPrice) {
        this.securityID = securityID;
        this.securityName = securityName;
        this.tradingDate = tradingDate;
        this.csrcIndustryTypeID = csrcIndustryTypeID;
        this.tradingPrice = tradingPrice;
    }

    @Override
    public String toString() {
        return "Security{" +
                "securityID=" + securityID +
                ", securityName='" + securityName + '\'' +
                ", tradingDate='" + tradingDate + '\'' +
                ", csrcIndustryTypeID=" + csrcIndustryTypeID +
                ", tradingPrice=" + tradingPrice +
                '}';
    }


}


